<?php
/**
 * Created by PhpStorm.
 * User: drawping
 * Date: 2017/3/6
 * Time: 下午9:36
 */

namespace Drawping\Amap;

use Illuminate\Support\Facades\Facade as LaravelFacade;
use Drawping\Amap\Foundation\Application;

class AmapFacade extends LaravelFacade
{
    public static function getFacadeAccessor()
    {
        return Application::class;
    }
    public static function __callStatic($name, $args)
    {
        $app = static::getFacadeRoot();

        if (method_exists($app, $name)) {
            return call_user_func_array([$app, $name], $args);
        }

        return $app->$name;
    }
}